import { ProFormColumnsType } from '@ant-design/pro-components';
import { RoleType } from '@/types/role';

export const roleFormItem: ProFormColumnsType<RoleType>[] = [
  {
    title: '角色',
    dataIndex: 'name',
    formItemProps: {
      rules: [
        {
          required: true,
          message: '此项为必填项',
        },
      ],
    },
  },
  {
    title: '角色标识',
    dataIndex: 'sole',
    formItemProps: {
      rules: [
        {
          required: true,
          message: '此项为必填项',
        },
      ],
    },
  },
  {
    title: '备注',
    dataIndex: 'memo',
    valueType: 'textarea',
  },
];
